package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_online_user_list")
@Data
@Document(indexName = "t_online_user_list")
public class OnlineUserListDO extends  BaseDO {
    @Field(name = "username", type = FieldType.Text, analyzer = "ik_max_word")
    private String username;
    @Field(name = "avatar", type = FieldType.Text, analyzer = "ik_max_word")
    private String avatar;
    @Field(name = "nickname", type = FieldType.Text, analyzer = "ik_max_word")
    private String nickname;
    @Field(name = "email", type = FieldType.Text, analyzer = "ik_max_word")
    private String email;
    @Field(name = "user_id", type = FieldType.Text, analyzer = "ik_max_word")
    private  Integer userId;
}
